<#assign base=request.contextPath />
<!DOCTYPE html>
<html lang="en">
<head>
	<link rel="stylesheet" href="${base}/static/assets/css/chosen.css" />
	<link rel="stylesheet" href="${base}/static/assets/css/bootstrap-timepicker.css" />
	<#include "/commons/headImport.ftl">
</head>
<body>
<div class="main-container" id="main-container">
	<input type="hidden" value="${base}" id="context_hidden_id"/>
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>

	<div class="main-container-inner">
		<div class="main-content">
			<div class="page-content">
				<form class="form-horizontal" id="formName" name="formName" method="post">
				<input type="hidden" value="${attendanceDO.id!0}" name="id"/>
				<input type="hidden" value="${attendanceDO.paymentId!0}" name="paymentId"/>
				<input type="hidden" value="0" name="paymentDO.type"/>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">出库项目</label>
							<div class="col-sm-4">
                                <select class="form-control contract-chosen-select" name="paymentDO.contractId" id="contract-select" >
                                    <option value="">--请选择--</option>
                                </select>
								<input type="hidden" id="contractId" value="${(attendanceDO.paymentDO.contractId!'')}"/>
							</div>
						</div>
						<div class="space-4"></div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">姓名</label>
							<div class="col-sm-4">
                                <select class="col-sm-10 user-chosen-select" name="employeeId" id="user-select" >
                                    <option value="0">--请选择--</option>
                                </select>
                                <input type="hidden" id="user_list_id" value="${attendanceDO.employeeId!0}">
							</div>
						</div>
						<div class="space-4"></div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">工作日期</label>
							<div class="col-sm-3">
								<div class="row">
                                    <div class="col-xs-12">
                                        <div class="input-group input-group-sm">
                                            <input type="text" readonly="true" class="form-control date-picker" name="workDate" 
                                            	value="${(attendanceDO.workDate?string('yyyy-MM-dd'))!''}" data-date-format="yyyy-mm-dd"/>
                                            <span class="input-group-addon"><i class="icon-calendar"></i></span>
                                        </div>
                                    </div>
                            	</div>
							</div>
							<div class="help-block col-xs-12 col-sm-reset inline"></div>
						</div>
						<div class="space-4"></div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">时间</label>
							<div class="col-sm-4">
								<div class="input-daterange input-group">
									<div class="col-sm-6">
										<div class="input-group bootstrap-timepicker">
											<input type="text" name="startWorkTime" value="${attendanceDO.startWorkTime!''}" class="col-sm-12 startWorkTime" />
											<span class="input-group-addon">
												<i class="fa fa-clock-o bigger-110"></i>
											</span>
										</div>
									</div>
									<div class="col-sm-6">
										<div class="input-group bootstrap-timepicker">
											<input type="text" name="endWorkTime" value="${attendanceDO.endWorkTime!''}" class="col-sm-12 endWorkTime"/>
											<span class="input-group-addon">
												<i class="fa fa-clock-o bigger-110"></i>
											</span>
										</div>
									</div>
								</div>
							</div>
							<div class="help-block col-xs-12 col-sm-reset inline"></div>
						</div>
						<div class="space-4"></div>

						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">金额</label>
							<div class="col-sm-4">
								<input type="text" name="paymentDO.pageAmount" value="${(attendanceDO.paymentDO.pageAmount?string('0.00'))!0}" class='col-sm-6'/>
							</div>
						</div>
						<div class="space-4"></div>

						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">备注</label>
							<div class="col-sm-4">
								<textarea name="remark" class="col-sm-12" rows="4">${attendanceDO.remark!''}</textarea>
							</div>
						</div>
					</div><!-- /.col -->
				</div><!-- /.row -->
				</form>
			</div><!-- /.page-content -->
		</div><!-- /.main-content -->
	</div><!-- /.main-container-inner -->
</div><!-- /.main-container -->

<div class="hr hr32 hr-dotted"></div>

<div class="clearfix">
	<label class="col-sm-3 control-label no-padding-right"></label>
	<div class="col-md-offset-3 col-md-9">
		<button class="btn btn-xs btn-info" type="button" id="update_id" url="${base}/attendance/edit">
			<i class="icon-save bigger-110"></i>保存
		</button>
		<button class="btn btn-xs" type="reset" id="return_id">
			<i class="icon-reply bigger-110"></i>关闭
		</button>
	</div>
</div>
<#include "/commons/footJs.ftl">
<script src="${base}/static/assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="${base}/static/assets/js/date-time/bootstrap-timepicker.min.js"></script>
<script src="${base}/static/assets/js/date-time/bootstrap-datepicker.zh-CN.js"></script>
<script src="${base}/static/assets/js/chosen.jquery.min.js"></script>
<script src="${base}/static/layer/layer.js"></script>
<script src="${base}/static/js/erp/employee.js"></script>
<script src="${base}/static/js/erp/contract-select.js"></script>
<script src="${base}/static/js/erp/artificialEdit.js"></script>
</body>
</html>
